import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios'
import ElementUI from 'element-ui' // 引入element-ui 所有组件
import 'element-ui/lib/theme-chalk/index.css' // 引入element-ui CSS样式



Vue.config.productionTip = false
Vue.use(ElementUI); // 在vue脚手架中使用ElementUI
Vue.prototype.$axios = axios
axios.defaults.baseURL = '/api'        //关键代码
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
